import Vue from "vue"
import VueRouter from "vue-router"

import Goods from "./components/goods/goods"
import Ratings from "./components/ratings/ratings"
import Seller from "./components/seller/seller"

Vue.use(VueRouter)

var router = new VueRouter({
  routes: [
    {
      path: "/",
      redirect: "/goods"
    },
    {
      path: "/goods",
      name: "goods",
      component: Goods
    },
    {
      path: "/ratings",
      name: "ratings",
      component: Ratings
    },
    {
      path: "/seller",
      name: "seller",
      component: Seller
    }
  ]
})

export default router
